import React from 'react';
import { Navigate, Outlet } from 'umi';
import { isLogin } from '@/pages/user/login/service';

export default () => {
  return isLogin() ? <Outlet /> : <Navigate to="/user/login" />;
}